<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
//https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx54fcf7c812a5129b&redirect_uri=http%3A%2F%2Fjinxiaocun3.wanyucheng.com%2Fwechat%2FLogin_callback.html&response_type=code&scope=snsapi_userinfo&state=afd5c1cd67a85e877789e22bfbe8008e&connect_redirect=1#wechat_redirect
// +----------------------------------------------------------------------

//后台
Route::group('admin', function () {
    Route::rule("/", "admin/index/login");
    Route::rule("index", "admin/home/index");
    Route::rule('loginOut', 'admin/Home/loginOut');
    Route::rule('index/main', 'admin/home/main'); //后台首页展示面板
    Route::rule('user/list', 'admin/users/index');
    Route::rule('order/list/[:page_size]', 'admin/order/index');
    Route::rule('order/del/[:id]', 'admin/order/del');
    Route::rule('order/selectDel/[:id]', 'admin/order/selectDel');
    Route::rule('order/down/[:id]', 'admin/order/down');
    Route::rule('order/details/[:id]', 'admin/order/details');
    Route::rule('QRTest', 'admin/Qr/index');
    Route::rule('userDelete', 'admin/users/delete');//会员删除
    Route::rule('order_allDown', 'admin/order/allDown');//会员删除
    Route::rule('download', 'admin/order/download'); //下载当天的统计
});
//微信端
Route::group('wechat', function () {
    Route::rule("/", "wechat/index/index");
    Route::rule("Login_callback", "wechat/oauth/callback");
    Route::rule('newOrder', 'wechat/Apply/NewOrder'); //后台首页展示面板
    Route::rule('orderList', 'wechat/Apply/orderList'); //后台首页展示面板
    Route::rule('offer', 'wechat/express/offer');//未报价
    Route::rule('offer_user', 'wechat/express/offer_user');//已经报价
    Route::rule('send_price/[:id]', 'wechat/express/send');//提交报价信息
    Route::rule('send_List', 'wechat/express/sendList');//提交报价信息
    Route::rule('SelectList/[:id]', 'wechat/Apply/SelectList');//提交报价信息
    Route::rule('select/[:id]', 'wechat/express/select');//选择其中一家
    Route::rule('OrderChange', 'wechat/express/OrderChange');//发货
    Route::rule('No_receive', 'wechat/receive/NoReceive');//没有收货的列表
    Route::rule('write_receive/[:id]', 'wechat/receive/Receive');//填写收货信息
    Route::rule('received', 'wechat/receive/Received');//已获列表
    Route::rule('receive_details/[:id]', 'wechat/receive/details');//已获列表
    Route::rule('allow_list', 'wechat/allow/AllowList');//待审批列表
//    Route::rule('allow_list', 'wechat/allow/AllowList');//已审批列表
    Route::rule('allow/[:id]', 'wechat/allow/Allow');//审批界面
    Route::rule('allowed/[:id]', 'wechat/allow/Allowed');//审批界面
    Route::rule('AllowedList', 'wechat/allow/AllowedList');//已审批的列表
    Route::rule('Allowed_details/[:id]', 'wechat/allow/AllowedDetails');//已审批的列表
});

Route::rule("upImg", "index/index/upImg");